<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:if="${errorinfo != null}"><font color="#8b0000" th:text="${errorinfo}"></font></div>
<form action="logincheck">
    <table>
        <tr>
            <td>用户名</td>
            <td><input type="text" name="username"/></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type="password" name="password"/></td>
        </tr>
        <tr>
            <td colspan="2" align="right"><input type="submit" value="login"/></td>
        </tr>
    </table>
</form>
</body>
</html>